Kameleon-Plus  0.3.2
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccmc::GeneralFileReader Class Reference

#include <GeneralFileReader.h>

Inheritance diagram for ccmc::GeneralFileReader:
Inheritance graph
[legend]
Collaboration diagram for ccmc::GeneralFileReader:
Collaboration graph
[legend]

Public Member Functions

 GeneralFileReader ()
 
long open (const std::string &filename)
 
std::vector< float > * getVariable (const std::string &variable)
 
std::vector< float > * getVariable (long variableID)
 
std::vector< float > * getVariable (const std::string &variable, long startIndex, long count)
 
std::vector< float > * getVariable (long variableID, long startIndex, long count)
 
float getVariableAtIndex (const std::string &variable, long index)
 
float getVariableAtIndex (long variable_id, long index)
 
std::vector< int > * getVariableInt (const std::string &variable)
 
int getVariableIntAtIndex (const std::string &variable, long index)
 
int getNumberOfGlobalAttributes ()
 
int getNumberOfVariables ()
 
int getNumberOfVariableAttributes ()
 
long getNumberOfRecords (const std::string &variable)
 
long getNumberOfRecords (long variable_id)
 
long getVariableID (const std::string &variable)
 
std::string getVariableName (long variable_id)
 
Attribute getGlobalAttribute (long i)
 
std::string getGlobalAttributeName (long attribute_id)
 
std::string getVariableAttributeName (long attribute_id)
 
Attribute getGlobalAttribute (const std::string &attribute)
 
Attribute getVariableAttribute (const std::string &variable, const std::string &attribute)
 
std::vector< std::string > getVariableAttributeNames ()
 
bool doesAttributeExist (const std::string &attribute)
 
bool doesVariableExist (const std::string &variable)
 
long close ()
 
const std::string & getCurrentFilename ()
 
 ~GeneralFileReader ()
 

Protected Member Functions

void initializeGlobalAttributes ()
 
void initializeVariableAttributes ()
 
void initializeVariableIDs ()
 
void initializeVariableNames ()
 

Protected Attributes

std::string current_filename
 
boost::unordered_map
< std::string, long > 
variableIDs
 
boost::unordered_map< long,
std::string > 
variableNames
 
boost::unordered_map
< std::string, Attribute
gAttributes
 
boost::unordered_map< long,
Attribute
gAttributeByID
 
boost::unordered_map
< std::string,
boost::unordered_map
< std::string, Attribute > > 
vAttributes
 
FileReaderfileReader
 

Constructor & Destructor Documentation

ccmc::GeneralFileReader::GeneralFileReader ( )
ccmc::GeneralFileReader::~GeneralFileReader ( )

Here is the call graph for this function:

Member Function Documentation

long ccmc::GeneralFileReader::close ( )

Here is the call graph for this function:

bool ccmc::GeneralFileReader::doesAttributeExist ( const std::string &  attribute)

Here is the call graph for this function:

bool ccmc::GeneralFileReader::doesVariableExist ( const std::string &  variable)

Here is the call graph for this function:

const std::string & ccmc::GeneralFileReader::getCurrentFilename ( )

Here is the call graph for this function:

Attribute ccmc::GeneralFileReader::getGlobalAttribute ( long  i)

Here is the call graph for this function:

Attribute ccmc::GeneralFileReader::getGlobalAttribute ( const std::string &  attribute)

Here is the call graph for this function:

std::string ccmc::GeneralFileReader::getGlobalAttributeName ( long  attribute_id)

Here is the call graph for this function:

int ccmc::GeneralFileReader::getNumberOfGlobalAttributes ( )

Here is the call graph for this function:

long ccmc::GeneralFileReader::getNumberOfRecords ( const std::string &  variable)

Here is the call graph for this function:

long ccmc::GeneralFileReader::getNumberOfRecords ( long  variable_id)

Here is the call graph for this function:

int ccmc::GeneralFileReader::getNumberOfVariableAttributes ( )

Here is the call graph for this function:

int ccmc::GeneralFileReader::getNumberOfVariables ( )

Here is the call graph for this function:

std::vector< float > * ccmc::GeneralFileReader::getVariable ( const std::string &  variable)

Here is the call graph for this function:

std::vector< float > * ccmc::GeneralFileReader::getVariable ( long  variableID)

Here is the call graph for this function:

std::vector< float > * ccmc::GeneralFileReader::getVariable ( const std::string &  variable,
long  startIndex,
long  count 
)

Here is the call graph for this function:

std::vector< float > * ccmc::GeneralFileReader::getVariable ( long  variableID,
long  startIndex,
long  count 
)

Here is the call graph for this function:

float ccmc::GeneralFileReader::getVariableAtIndex ( const std::string &  variable,
long  index 
)

Here is the call graph for this function:

float ccmc::GeneralFileReader::getVariableAtIndex ( long  variable_id,
long  index 
)

Here is the call graph for this function:

Attribute ccmc::GeneralFileReader::getVariableAttribute ( const std::string &  variable,
const std::string &  attribute 
)

Here is the call graph for this function:

std::string ccmc::GeneralFileReader::getVariableAttributeName ( long  attribute_id)

Here is the call graph for this function:

std::vector< std::string > ccmc::GeneralFileReader::getVariableAttributeNames ( )

Here is the call graph for this function:

long ccmc::GeneralFileReader::getVariableID ( const std::string &  variable)

Here is the call graph for this function:

std::vector< int > * ccmc::GeneralFileReader::getVariableInt ( const std::string &  variable)

Here is the call graph for this function:

int ccmc::GeneralFileReader::getVariableIntAtIndex ( const std::string &  variable,
long  index 
)

Here is the call graph for this function:

std::string ccmc::GeneralFileReader::getVariableName ( long  variable_id)

Here is the call graph for this function:

void ccmc::GeneralFileReader::initializeGlobalAttributes ( )
protected
void ccmc::GeneralFileReader::initializeVariableAttributes ( )
protected
void ccmc::GeneralFileReader::initializeVariableIDs ( )
protected

Here is the call graph for this function:

void ccmc::GeneralFileReader::initializeVariableNames ( )
protected

Here is the call graph for this function:

long ccmc::GeneralFileReader::open ( const std::string &  filename)

Here is the call graph for this function:

Member Data Documentation

std::string ccmc::GeneralFileReader::current_filename
protected
FileReader* ccmc::GeneralFileReader::fileReader
protected
boost::unordered_map<long, Attribute> ccmc::GeneralFileReader::gAttributeByID
protected
boost::unordered_map<std::string, Attribute> ccmc::GeneralFileReader::gAttributes
protected
boost::unordered_map<std::string, long> ccmc::GeneralFileReader::variableIDs
protected
boost::unordered_map<long, std::string> ccmc::GeneralFileReader::variableNames
protected
boost::unordered_map<std::string, boost::unordered_map<std::string, Attribute> > ccmc::GeneralFileReader::vAttributes
protected

The documentation for this class was generated from the following files: